<!DOCTYPE html>
<head>
	<meta charset="utf-8"/>
	<meta name="" content=""/>
	<title>廊坊正康基科技有限公司</title>
	<link rel="stylesheet" type="text/css" href="css/index.css"/>
	<link href="bitbug_favicon.ico" rel="shortcut icon" />
	<link rel="stylesheet" type="text/css" href="css/delivery.css"/>
</head>

<body>
	<div class="top">
		<div class="inner" id="top">
			<a href="register.html">注册</a><a href="login.html">登录</a> 
		</div>
	</div>
	<header>
		
	</header>
	<nav>
		<ul class="inner">
			<li class="ac"><a href="index.html">首页</a></li>
			<li><a href="gongsigonggao.html">公司公告</a></li>
			<li><a href="ershouzhuanrang.html">二手转让</a></li>
			<li><a href="cheliangmaimai.html">车辆买卖</a></li>
			<li><a href="fangwuzushou.html">房屋租售</a></li>
			<li><a href="quanzhizhaopin.html">全职招聘</a></li>
			<li><a href="jianzhizhaopin.html">兼职招聘</a></li>
		</ul>
	</nav>
	<div class=" inner">
		<form id="f" class="form_list" >
			<p class="tit">发布标题：<input type="text" name="info.title" placeholder="请输入标题"/></p>
			<p class="tit">发布类型：
				<select name="info.type">
					<option selected="" value="">请选择</option>
					<option value="2">二手转让</option>
					<option value="3">车辆买卖</option>
					<option value="4">房屋租售</option>
					<option value="5">全职招聘</option>
					<option value="6">兼职招聘</option>
				</select>
			</p>
			<p class="in"><span>发布内容：</span><textarea name="info.text" id="" cols="30" rows="10"></textarea> </p>
			<p class="date">发布日期：<input type="date" name="info.create_time" /></p>
			<p class="date">发布人：<input type="text" placeholder="请输入发布人" name="info.user" id="user" readonly="readonly"/></p>
			<p class="date">联系电话：<input type="tel" placeholder="请输入联系电话" name="info.ophone"/></p>
			<p class="date">联系地址：<input type="text" placeholder="请输入联系地址" name="info.path"/></p>
			<p class="btn">
				<button onclick="create()" type="button">发布</button>
			</p>
		</form>
	</div>
	<footer>
		<div class="inner">
			<ul>
			<li class="ac"><a href="index.html">首页</a></li>|
			<li><a href="gongsigonggao.html">公司公告</a></li>|
			<li><a href="ershouzhuanrang.html">二手转让</a></li>|
			<li><a href="cheliangmaimai.html">车辆买卖</a></li>|
			<li><a href="fangwuzushou.html">房屋租售</a></li>|
			<li><a href="quanzhizhaopin.html">全职招聘</a></li>|
			<li><a href="jianzhizhaopin.html">兼职招聘</a></li>|
		</ul>
		<p>Powered by 廊坊正康基科技有限公司 公司地址：河北省廊坊市华北航天工业学院西校区异创空间110</p>
		<p>联系电话：(010) 8646 8492 电子邮箱：hlbeydmaigu@163.com</p>
		<p>冀ICP备18036914号-1</p>
		<p class="copyright">版权所有©廊坊正康基科技有限公司</p>
		</div>
	</footer>
</body>
<script type="text/javascript" src="js/jquery1111.min.js" ></script>
<script type="text/javascript" src="js/config.js" ></script>
<script type="text/javascript" src="js/jquery.session.js" ></script>
	<script type="text/javascript" src="js/login.js" ></script>
<script>
	
	$(function(){
		var name = $.session.get('name');
		$("#user").val(name);
	})
	
	function create(){
			$.ajax({
				url: serverPath + 'add',
				data: $("#f").serialize(),
				type: 'get',
				dataType: 'json',
				success: function(json){
					if(json.code==2001){
						alert(json.msg)
					}else{
						alert('恭喜您发布成功')
						window.location = 'index.html';
					}
				},
				error: function(){
					alert('保存发生错误，请重试');
				}
			});
		}
	//cookie获取usernam
</script>
</html>